<?php if (!defined("_ECRIRE_INC_VERSION")) return; ?>

<table>
<tr>
	<td>
        <div class="<?php echo _request('exec') == 'radiodj' ? 'onglet_on' : 'onglet'?>">
            <a href="?exec=radiodj">Список Диджеев</a>
        </div> 
    </td>
	<td>
        <div class="<?php echo _request('exec') == 'radiodj_schedule' ? 'onglet_on' : 'onglet'?>">        
        <a href="?exec=radiodj_schedule&day=1">Расписание Диджеев</a>
        </div>
    </td>
    <td>
        <div class="<?php echo _request('exec') == 'programs_list' ? 'onglet_on' : 'onglet'?>">
            <a href="?exec=programs_list">Список программ</a>
        </div> 
    </td>
    <td>
        <div class="<?php echo _request('exec') == 'radiodj_programs_schedule' ? 'onglet_on' : 'onglet'?>">        
        <a href="?exec=radiodj_programs_schedule&day=1">Расписание программ</a>
        </div>
    </td>
</tr>
</table>
<?php $days = array('1' => 'Пн', '2' => 'Вт', '3' => 'Ср', '4' => 'Чт', '5' => 'Пт', '6' => 'Сб', '7' => 'Вс'); ?>
<?php if (_request('exec') == 'radiodj_schedule') { 
$id_auteur = !empty($_GET['id_auteur'])?(int)$_GET['id_auteur']:'';
?>
<table>
<tr>
<?php
foreach($days as $key=>$d) { ?>
    <td>
        <div class="<?php echo _request('day')==$key?'onglet_on':'onglet'?>">
        <a href="?exec=radiodj_schedule&day=<?php echo $key; if($id_auteur)echo"&id_auteur=".$id_auteur;?>" title="<?php echo date('N')==$key?'Сегодня':$d;?>"><?php echo date('N')==$key?'<font style=\'text-decoration: underline;\'>'.$d.'</font>':$d;?></a>
        </div>
    </td>
<?php } ?>
</tr>
</table>
<?php } ?>
<?php if (_request('exec') == 'radiodj_programs_schedule') { 
$id_rubrique = !empty($_GET['id_rubrique'])?(int)$_GET['id_rubrique']:'';
?>
<table>
<tr>
<?php
foreach($days as $key=>$d) { ?>
    <td>
        <div class="<?php echo _request('day')==$key?'onglet_on':'onglet'?>">
        <a href="?exec=radiodj_programs_schedule&day=<?php echo $key; if($id_rubrique)echo"&id_rubrique=".$id_rubrique;?>" title="<?php echo date('N')==$key?'Сегодня':$d;?>"><?php echo date('N')==$key?'<font style=\'text-decoration: underline;\'>'.$d.'</font>':$d;?></a>
        </div>
    </td>
<?php } ?>
</tr>
</table>
<?php } ?>